<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/jsp/taglibs.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=7" />
		<title>report right</title>
		<link id="editCss" rel="stylesheet" type="text/css"
			href="<%=basePath%>css/style.css" />

		<script type="text/javascript"
			src="<%=basePath%>js/permission_dtree.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/base.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/popUpBase.js"></script>
	</head>
	<body>
		<form method="post">
			<div class="crumbs">
				当前位置：首页 &gt; 角色管理 &gt; 查看已有权限
			</div>
			<div class="popUpCon"
				style="height: 245px; width: 100%; background: none">
				<div class="list"
					style="height: 245px; width: 393px; overflow: auto; margin: 2px">
					<script type="text/javascript">
						var d = new dTree('d',false);
						d.add("0",-1,"角色ID:<%=request.getAttribute("roleId")%> 的权限树");
					</script>
					<c:forEach items="${list}" var="role">
						<script type="text/javascript">
						d.add('${role['ID']}','${role['PID']}','${role['NAME']}','${role['URL']}');
					</script>
					</c:forEach>
					<script type="text/javascript">
						document.write(d) ;
					</script>
				</div>
			</div>
			<div class="popUpFooter" style="margin-top:6px">
				<input type="button" class="button" value=" 返回 "
					onclick="javascript:closeMe('role_view')" />
			</div>
		</form>
	</body>
</html>